﻿using System;
using System.ComponentModel.DataAnnotations;
using FreeSql.DataAnnotations;

namespace QuDao
{
	/// <summary>
    /// biz_sales_daily: biz_每日销售统计
    /// </summary>
	[Table(Name ="biz_sales_daily")]
    public partial class SalesDaily
    {
        /// <summary>
        /// ID
        /// </summary>
        [FreeSql.DataAnnotations.Column(IsPrimary = true, IsIdentity = true)]
        [Display(Name = "ID")]
        public long ID { get; set; }

        /// <summary>
        /// 租户ID
        /// </summary>
        [Display(Name = "租户ID")]
        public int TID { get; set; }

        /// <summary>
        /// 代理ID
        /// </summary>
        [Display(Name = "代理ID")]
        public long AgentID { get; set; }

        /// <summary>
        /// 代理姓名
        /// </summary>
        [Display(Name = "代理姓名")]
        public string AgentName { get; set; }

        /// <summary>
        /// 销售日期
        /// </summary>
        [Display(Name = "销售日期")]
        public DateTime SalesDate { get; set; }

        /// <summary>
        /// 销售区域ID
        /// </summary>
        [Display(Name = "销售区域ID")]
        public int AreaID { get; set; }

        /// <summary>
        /// 订单数量
        /// </summary>
        [Display(Name = "订单数量")]
        public int OrderNum { get; set; }

        /// <summary>
        /// 销售金额
        /// </summary>
        [Display(Name = "销售金额")]
        public decimal Amount { get; set; }

        /// <summary>
        /// 分账金额：减去成本后要分出去的费用
        /// </summary>
        [Display(Name = "分账金额")]
        public decimal DividedAmount { get; set; }

        /// <summary>
        /// 余额抵扣
        /// </summary>
        [Display(Name = "余额抵扣")]
        public decimal DeductionAmount { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        public DateTime CreateTime { get; set; }


    }
}